package com.wzy.observerPattern;

import java.util.Vector;

/**
 * @Author: wzy
 * @Date: 2022/10/11/9:32
 * @Description:
 */
public class Client {
    public static void main(String[] args) {
        Vector<ObServer> obServers = new Vector<>();
        obServers.add(new ConcreteObserver1());
        obServers.add(new ConcreteObserver2());
        Subject subject = new ConcreteSubject();
        subject.setObs(obServers);
        subject.doSomething();

    }
}
